package com.daxt.model.service.use.param;

import java.io.Serializable;
import java.time.LocalDateTime;

import javax.validation.constraints.NotBlank;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "利用查询", description = "利用查询")
public class UseQuery implements Serializable{
	

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value = "id", name = "id")
    private Integer pageNum;
	@NotBlank
	@ApiModelProperty(value = "列描述", name = "columnComment")
    private Integer pageSize;
	@NotBlank
	@ApiModelProperty(value = "是否列表显示 0否 1是", name = "isList")
    private String title;
	@NotBlank
	@ApiModelProperty(value = "列是否可查询  0否 1是", name = "isQuery")
    private String recordLogType;
	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
	@ApiModelProperty(value = "开始时间", name = "startTime",example = "2019-09-09 00:00")
    private LocalDateTime startTime;
	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
	@ApiModelProperty(value = "结束时间", name = "endTime",example = "2019-09-09 00:00")
	private LocalDateTime endTime;
	

}